package com.jiayu.wheel.demo;

import org.springframework.web.bind.annotation.*;

/**
 * @author Administrator
 */
@RestController
@RequestMapping("/demo")
public class DemoAction {

    @GetMapping("/getDemo")
    public String getDemo(){
        return "demo";
    }

    @RequestMapping(value = "/info",method = RequestMethod.GET,headers = "code",produces = "application/json")
    @ResponseBody
    public String getInfo(){
        return "Info";
    }



}
